import Http from "../Http";
import qs from "qs";

// 用户登录相关
export default {
    // 病人登录
    login(phone, password) {
        return Http.post("/mms/patient/login", qs.stringify({
            phone, password
        }))
    },
    // 医生、管理员登录
    doctorLogin(phone, password) {
        return Http.post("/mms/doctor/login", qs.stringify({
            phone, password
        }))
    },
    logout() {
        return Http.post("/user/logout")
    },

}
